package com.cn.ant.modules.score.entity;

import com.cn.ant.common.utils.excel.annotation.ExcelField;
import org.hibernate.validator.constraints.Length;

import com.cn.ant.common.persistence.MyDataEntity;

/**
 * 一分段信息Entity
 * @author AntDream
 * @version 2015-08-17
 */
public class YfdInfo extends MyDataEntity<YfdInfo> {
	
	private static final long serialVersionUID = 1L;
	private String year;		// 年度
	private String kemuType;		// 科类
	private String score;		// 分数
	private String totalNum;		// 累计人数
	private String bdNum;		// 本段人数
	private String province;		// 省份
	private String beginScore;		// 开始 分数
	private String endScore;		// 结束 分数

	/**
	 * 扩展信息
	 */
	private String provinceName;//省份信息

	public YfdInfo() {
		super();
	}

	public YfdInfo(String id){
		super(id);
	}

	@Length(min=0, max=5, message="年度长度必须介于 0 和 5 之间")
	@ExcelField(title = "年度", align = 0, sort = 10, type = 0)
	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}
	
	@Length(min=0, max=20, message="科类长度必须介于 0 和 20 之间")
	@ExcelField(title = "科类", align = 0, sort = 20, type = 0,dictType = "kemu_type")
	public String getKemuType() {
		return kemuType;
	}

	public void setKemuType(String kemuType) {
		this.kemuType = kemuType;
	}
	
	@Length(min=0, max=11, message="分数长度必须介于 0 和 11 之间")
    @ExcelField(title = "分数", align = 0, sort = 50, type = 0)
	public String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}
	
	@Length(min=0, max=11, message="累计人数长度必须介于 0 和 11 之间")
    @ExcelField(title = "累计人数", align = 0, sort = 60, type = 0)
	public String getTotalNum() {
		return totalNum;
	}

	public void setTotalNum(String totalNum) {
		this.totalNum = totalNum;
	}
	
	@Length(min=0, max=11, message="本段人数长度必须介于 0 和 11 之间")
    @ExcelField(title = "本段人数", align = 0, sort = 70, type = 0)
	public String getBdNum() {
		return bdNum;
	}

	public void setBdNum(String bdNum) {
		this.bdNum = bdNum;
	}
	
	@Length(min=0, max=20, message="省份长度必须介于 0 和 20 之间")
    @ExcelField(title = "省份编码", align = 0, sort = 40, type = 0)
	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}
	
	public String getBeginScore() {
		return beginScore;
	}

	public void setBeginScore(String beginScore) {
		this.beginScore = beginScore;
	}
	
	public String getEndScore() {
		return endScore;
	}

	public void setEndScore(String endScore) {
		this.endScore = endScore;
	}

    @ExcelField(title = "省份名称", align = 0, sort = 30, type = 0)
    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }
}